﻿using System.Runtime.Serialization;
using UnityEngine.Scripting;

namespace GMME.Model.Rtm.Notify
{
    [DataContract]
    public class RtmMessageNotify : RtmMessageContent
    {
        /**
        * 全局发送消息唯一标识
        */
        [DataMember(Name = "serverMsgId")]
        [Preserve]
        public string ServerMsgId { get; set; }

        /**
        * 客户端发送消息唯一标识
        */
        [DataMember(Name = "clientMsgId")]
        [Preserve]
        public string ClientMsgId { get; set; }

        /**
         * 消息发送时间
         */
        [DataMember(Name = "timestamp")]
        [Preserve]
        public long Timestamp { get; set; }

        /**
         * 消息发送者的openId
         */
        [DataMember(Name = "senderId")]
        [Preserve]
        public string SenderId { get; set; }

        /**
         * 消息是否来自openApi
         */
        [DataMember(Name = "isFromOpenApi")]
        [Preserve]
        public bool IsFromOpenApi { get; set; }
    }
}